package study02;
import java.util.Scanner;

/**
* @author GZQ
* @Date 2023/11/5
 */

//输入天数，判断第几周第几天
public class DateConversion {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入，介于1 - 365之间的天数：");
        int day0 = input.nextInt();
        System.out.println("输入的是第" + day0  + "天");
        int week = (day0 / 7) + 1;
        int day1 = (day0 % 7) ;
        System.out.println("第" + week + "周" + "的" + "第" + day1 + "天");
    }
}
